<?php
namespace Friendlink\Controller;
use Think\Controller;
class IndexController extends Controller {

    public function get_all(){
        $model = D('Friendlink');
        $map['status'] = array('eq', 1);
        $list = $model->where($map)->order('sort desc')->select();
        return $list;
    }
}